package com.dp.system.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dp.common.annotation.Excel;
import com.dp.common.core.domain.BaseEntity;

/**
 * 温度记录对象 sys_temperature
 * 
 * @author ruoyi
 * @date 2025-02-10
 */
public class SysTemperature extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 温度记录ID */
    private Long temperatureId;

    /** 大棚ID */
    @Excel(name = "大棚ID")
    private Long greenhouseId;

    /** 温度值 */
    @Excel(name = "温度值")
    private BigDecimal temperatureValue;


    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date recordTime;

    /** 温度记录信息 */
    private List<SysTemperature> sysTemperatureList;

    /** 大棚名称 */
    private String name;

    public void setTemperatureId(Long temperatureId) 
    {
        this.temperatureId = temperatureId;
    }

    public Long getTemperatureId() 
    {
        return temperatureId;
    }
    public void setGreenhouseId(Long greenhouseId) 
    {
        this.greenhouseId = greenhouseId;
    }

    public Long getGreenhouseId() 
    {
        return greenhouseId;
    }
    public void setTemperatureValue(BigDecimal temperatureValue) 
    {
        this.temperatureValue = temperatureValue;
    }

    public BigDecimal getTemperatureValue() 
    {
        return temperatureValue;
    }
    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }

    public List<SysTemperature> getSysTemperatureList()
    {
        return sysTemperatureList;
    }

    public void setSysTemperatureList(List<SysTemperature> sysTemperatureList)
    {
        this.sysTemperatureList = sysTemperatureList;
    }

    // 添加 getter/setter
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("temperatureId", getTemperatureId())
            .append("greenhouseId", getGreenhouseId())
            .append("temperatureValue", getTemperatureValue())
            .append("recordTime", getRecordTime())
            .append("updateTime", getUpdateTime())
            .append("sysTemperatureList", getSysTemperatureList())
            .toString();
    }
}
